package com.smart.buss.service.impl;

import com.smart.buss.dao.BussAccountLogMapper;
import com.smart.buss.service.BussAccountLogService;
import com.smart.buss.vo.BussAccountLog;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
public class BussAccountLogServiceImpl implements BussAccountLogService {

	@Resource
	private BussAccountLogMapper bussAccountLogMapper;

	@Override
	public BussAccountLog queryObject(BussAccountLog entity) throws Exception {
		return bussAccountLogMapper.queryObject(entity);
	}

	@Override
	public List<BussAccountLog> queryList(BussAccountLog entity) throws Exception {
		return bussAccountLogMapper.queryList(entity);
	}

	@Override
	public List<BussAccountLog> queryListByPage(BussAccountLog entity) throws Exception {
		return bussAccountLogMapper.queryListByPage(entity);
	}

	@Override
	public Integer queryCount(BussAccountLog entity) throws Exception {
		Integer a=bussAccountLogMapper.queryCount(entity);
		return a==null?0:a;
	}

	@Override
	public Integer insert(BussAccountLog entity) throws Exception {
		return bussAccountLogMapper.insert(entity);
	}

	@Override
	public Integer update(BussAccountLog entity) throws Exception {
		return bussAccountLogMapper.update(entity);
	}

	@Override
	public Integer delete(String id) throws Exception {
		return bussAccountLogMapper.delete(id);
	}
}
